<head>
  <script src="https://unpkg.com/react@16/umd/react.development.js"></script>
  <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
  <script src="https://lib.baomitu.com/babel-core/5.8.38/browser.min.js"></script>
</head>
<html>
  <body>
    <div id="root"></div>
  </body>
  <script type="text/babel">
    const Com = (
      <span
        onClick={() => {
          console.log(123);
        }}
      >
        组件
      </span>
    );
    let reactEle = (
      <div style="color:red">
        <Com />
      </div>
    );
    ReactDOM.render(<reactEle/>, document.getElementById("root"));
    console.log(reactEle);
  </script>
</html>
